package com.xuecheng.ucenter.feignclient;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * ClassName: CheckCodeClient
 * Package: com.xuecheng.ucenter.feignclient
 * Description: 验证码服务远程接口
 *
 * @Author Endeavor-ZQB
 * @Create 2023/2/16 11:26
 * @Version 1.0
 */
@FeignClient(value = "checkcode",fallbackFactory = CheckCodeClientFallbackFactory.class)
public interface CheckCodeClient {

    @PostMapping(value = "/checkcode/verify")
    public Boolean verify(@RequestParam("key") String key, @RequestParam("code") String code);
}
